package com.line.model.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.line.config.cons.CodeCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "响应实体类")
public class ErrorResponse {

	@ApiModelProperty(value = "编码", name = "errcode", example = "0", required = true)
	private Integer errcode;

	@JsonInclude(Include.NON_NULL)
	@ApiModelProperty(value = "消息", name = "errmsg", example = "成功")
	private String errmsg;

	public ErrorResponse() {

	}

	public ErrorResponse(CodeCons codeCons) {
		this.errcode = codeCons.getCode();
		this.errmsg = codeCons.getMsg();
	}

	public Integer getErrcode() {
		return errcode;
	}

	public void setErrcode(Integer errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
}
